import webSite from "@/config/webSite";
import startSearchModel from "@/config/startSearchModel";

export default () => {
  return {
    menu: false,
    menuBtn: false,
    column: [
      {
        label: '数据源',
        span: 24,
        prop: 'dataSourceKey',
        type: 'select',
        editDetail: true,
        dicUrl: webSite.baseUrl + "/bpm/sdrServiceApi/listDataSource",
        cascader: ['targetTableName'],
        rules: [{
          required: true,
          message: "请选择数据源",
          trigger: "blur"
        }],
        props: {
          label: "dataSourceName",
          value: "dataSourceKey",

        },
      },
      {
        label: '数据表',
        span: 24,
        prop: 'targetTableName',
        type: "select",
        searchModel: startSearchModel.LIKE_RIGHT,
        dicUrl: webSite.baseUrl + "/bpm/sdrServiceApi/listTableByDataSourceKey?dataSourceKey={{dataSourceKey}}",
        search: true,
        filterable:true,
        rules: [{
          required: true,
          message: "请选择数据表",
          trigger: "blur"
        }],
        props: {
          label: "tableNameCN",
          value: 'tableName'
        },
      },
    ]
  }
}
